import type { PageParams, PageResult } from '@/types/global'
import { http } from '@/utils/http'
import type { ClassRoomItem } from '@/types/classRoom'

/**
 * 获取教室列表
 * @param params
 * @returns
 */
export const getClassRoomListApi = (params: PageParams) => {
  return http<PageResult<ClassRoomItem>>({
    method: 'GET',
    url: '/wechat/classRoom/list',
    data: params,
  })
}
